<!DOCTYPE html>

<!-- 

Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 2.3.1

Version: 1.3

Author: KeenThemes

Website: http://www.keenthemes.com/preview/?theme=metronic

Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469

-->

<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->

<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->

<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->

<!-- BEGIN HEAD -->

<head>

  <meta charset="utf-8" />

  <title><?php echo yii::app()->name?></title>

  <meta content="width=device-width, initial-scale=1.0" name="viewport" />

  <meta content="" name="description" />

  <meta content="" name="author" />

  <!-- BEGIN GLOBAL MANDATORY STYLES -->

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/style-metro.css" rel="stylesheet" type="text/css"/>

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/style.css" rel="stylesheet" type="text/css"/>

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/style-responsive.css" rel="stylesheet" type="text/css"/>

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/default.css" rel="stylesheet" type="text/css" id="style_color"/>

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/uniform.default.css" rel="stylesheet" type="text/css"/>

  <!-- END GLOBAL MANDATORY STYLES -->

  <!-- BEGIN PAGE LEVEL STYLES --> 

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/jquery.gritter.css" rel="stylesheet" type="text/css"/>

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/daterangepicker.css" rel="stylesheet" type="text/css" />

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/fullcalendar.css" rel="stylesheet" type="text/css"/>

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/jqvmap.css" rel="stylesheet" type="text/css" media="screen"/>

  <link href="<?php echo yii::app()->theme->baseUrl ?>/media/css/jquery.easy-pie-chart.css" rel="stylesheet" type="text/css" media="screen"/>

  <!-- END PAGE LEVEL STYLES -->

  <link rel="shortcut icon" href="<?php echo yii::app()->theme->baseUrl ?>/media/image/favicon.ico" />

</head>

<!-- END HEAD -->

<!-- BEGIN BODY -->

<body class="page-header-fixed">

  <!-- BEGIN HEADER -->

  <div class="header navbar navbar-inverse navbar-fixed-top">

    <!-- BEGIN TOP NAVIGATION BAR -->

    <div class="navbar-inner">

      <div class="container-fluid">

        <!-- BEGIN LOGO -->

        <a class="brand" href="<?php echo yii::app()->createUrl('site/index') ?>">

        <!-- <img src="<?php echo yii::app()->theme->baseUrl ?>/media/image/logo.png" alt="logo"/> -->

        </a>

        <!-- END LOGO -->

        <!-- BEGIN RESPONSIVE MENU TOGGLER -->

        <a href="javascript:;" class="btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">

        <img src="<?php echo yii::app()->theme->baseUrl ?>/media/image/menu-toggler.png" alt="" />

        </a>          

        <!-- END RESPONSIVE MENU TOGGLER -->            

        <!-- BEGIN TOP NAVIGATION MENU -->              

        <ul class="nav pull-right">

          <!-- BEGIN NOTIFICATION DROPDOWN -->   

          <li class="dropdown" id="header_notification_bar">

            <a href="#" class="dropdown-toggle" data-toggle="dropdown">

            <i class="icon-warning-sign"></i>

            <span class="badge">1</span>

            </a>

            <ul class="dropdown-menu extended notification">

              <li>

                <p>你有1个通知</p>

              </li>

              <li>

                <a href="#">

                <span class="label label-success"><i class="icon-plus"></i></span>

                哈哈. 

                <span class="time">刚刚</span>

                </a>

              </li>


              <li class="external">

                <a href="#">查看所有通知 <i class="m-icon-swapright"></i></a>

              </li>

            </ul>

          </li>

          <!-- END NOTIFICATION DROPDOWN -->

          <!-- BEGIN INBOX DROPDOWN -->

          <li class="dropdown" id="header_inbox_bar">

            <a href="#" class="dropdown-toggle" data-toggle="dropdown">

            <i class="icon-envelope"></i>

            <span class="badge">1</span>

            </a>

            <ul class="dropdown-menu extended inbox">

              <li>

                <p>你有1条新消息</p>

              </li>

              <li>

                <a href="inbox.html?a=view">

                <span class="photo"><img src="<?php echo yii::app()->theme->baseUrl ?>/media/image/avatar2.jpg" alt="" /></span>

                <span class="subject">

                <span class="from">大哥</span>

                <span class="time">10秒前</span>

                </span>

                <span class="message">

                今天加班

                </span>  

                </a>

              </li>

              <li class="external">

                <a href="inbox.html">查看所有新消息 <i class="m-icon-swapright"></i></a>

              </li>

            </ul>

          </li>

          <!-- END INBOX DROPDOWN -->

          <!-- BEGIN TODO DROPDOWN -->

          <li class="dropdown" id="header_task_bar">

            <a href="#" class="dropdown-toggle" data-toggle="dropdown">

            <i class="icon-tasks"></i>

            <span class="badge">12</span>

            </a>

            <ul class="dropdown-menu extended tasks">

              <li>

                <p>你有12个任务</p>

              </li>

              <li>

                <a href="#">

                <span class="task">

                <span class="desc">New release v1.2</span>

                <span class="percent">30%</span>

                </span>

                <span class="progress progress-success ">

                <span style="width: 30%;" class="bar"></span>

                </span>

                </a>

              </li>

              <li>

                <a href="#">

                <span class="task">

                <span class="desc">Application deployment</span>

                <span class="percent">65%</span>

                </span>

                <span class="progress progress-danger progress-striped active">

                <span style="width: 65%;" class="bar"></span>

                </span>

                </a>

              </li>

              <li>

                <a href="#">

                <span class="task">

                <span class="desc">Mobile app release</span>

                <span class="percent">98%</span>

                </span>

                <span class="progress progress-success">

                <span style="width: 98%;" class="bar"></span>

                </span>

                </a>

              </li>

              <li>

                <a href="#">

                <span class="task">

                <span class="desc">Database migration</span>

                <span class="percent">10%</span>

                </span>

                <span class="progress progress-warning progress-striped">

                <span style="width: 10%;" class="bar"></span>

                </span>

                </a>

              </li>

              <li>

                <a href="#">

                <span class="task">

                <span class="desc">Web server upgrade</span>

                <span class="percent">58%</span>

                </span>

                <span class="progress progress-info">

                <span style="width: 58%;" class="bar"></span>

                </span>

                </a>

              </li>

              <li>

                <a href="#">

                <span class="task">

                <span class="desc">Mobile development</span>

                <span class="percent">85%</span>

                </span>

                <span class="progress progress-success">

                <span style="width: 85%;" class="bar"></span>

                </span>

                </a>

              </li>

              <li class="external">

                <a href="#">查看所有任务 <i class="m-icon-swapright"></i></a>

              </li>

            </ul>

          </li>

          <!-- END TODO DROPDOWN -->

          <!-- BEGIN USER LOGIN DROPDOWN -->

          <li class="dropdown user">

            <a href="#" class="dropdown-toggle" data-toggle="dropdown">

            <img alt="" src="<?php echo yii::app()->theme->baseUrl ?>/media/image/avatar1_small.jpg" />

            <span class="username"><?php echo  Yii::app()->user->name ?></span>

            <i class="icon-angle-down"></i>

            </a>

            <ul class="dropdown-menu">

              <li><a href="<?php echo $this->createUrl("user/index") ?>"><i class="icon-user"></i>个人中心</a></li>


              <li><a href="<?php echo $this->createUrl('user/password') ?>"><i class="icon-envelope"></i> 修改密码</a></li>

              <li><a href="#"><i class="icon-tasks"></i> 我的任务</a></li>

              <li class="divider"></li>

              <li><a href="extra_lock.html"><i class="icon-lock"></i> 锁定</a></li>

              <li><a href="<?php echo $this->createUrl("user/logout") ?>"><i class="icon-key"></i> 退出</a></li>

            </ul>

          </li>

          <!-- END USER LOGIN DROPDOWN -->

        </ul>

        <!-- END TOP NAVIGATION MENU --> 

      </div>

    </div>

    <!-- END TOP NAVIGATION BAR -->

  </div>

  <!-- END HEADER -->

  <!-- BEGIN CONTAINER -->

  <div class="page-container">

    <!-- BEGIN SIDEBAR -->

    <div class="page-sidebar nav-collapse collapse">

      <!-- BEGIN SIDEBAR MENU -->        

      <ul class="page-sidebar-menu">

        <li>

          <!-- BEGIN SIDEBAR TOGGLER BUTTON -->

          <div class="sidebar-toggler hidden-phone"></div>

          <!-- BEGIN SIDEBAR TOGGLER BUTTON -->

        </li>

        <li>

          <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->

          <form class="sidebar-search">

            <div class="input-box">

              <a href="javascript:;" class="remove"></a>

              <input type="text" placeholder="Search..." />

              <input type="button" class="submit" value=" " />

            </div>

          </form>

          <!-- END RESPONSIVE QUICK SEARCH FORM -->

        </li>

        <li class="start">

          <a href="javascript:;">

          <i class="icon-home"></i> 

          <span class="title">控制面板</span>

           <span class="arrow "></span>

          </a>
           <ul class="sub-menu">

            <li >

            <a href="<?php echo $this->createUrl('site/setting') ?>">网站设置</a>

            </li>
             <li><a href="<?php echo $this->createUrl('navigation/Index') ?>">栏目管理</a></li>
          </ul>

        </li>

        <li class="">

          <a href="javascript:;">

          <i class="icon-cogs"></i> 

          <span class="title">内容管理</span>

          <span class="arrow "></span>

          </a>

          <ul class="sub-menu">

            <li >

             <a href="<?php echo $this->createUrl('article/create') ?>">添加文章</a>

            </li>

            <li >

             <a href="<?php echo $this->createUrl('article/index') ?>">文章管理</a>

            </li>

            <li >

             <a href="javascript:;">评论管理</a>

            </li>

            <li >

            <a href="<?php echo $this->createUrl('link/index') ?>">友情链接管理</a>

            </li>

          </ul>

        </li>


          <li class="">

          <a href="javascript:;">

          <i class="icon-user"></i> 

          <span class="title">账户管理</span>

           <span class="arrow "></span>

          </a>
           <ul class="sub-menu">
             <li><a href="<?php echo  $this->createUrl('user/create') ?>">添加账号</a></li>
             <li><a href="<?php echo  $this->createUrl('user/list') ?>">账号列表</a></li>
           </ul>
        </li>

        <li class="">

          <a href="javascript;">

          <i class="icon-bar-chart"></i> 

          <span class="title">个人管理</span>
          <span class="arrow"></span>
          </a>
            <ul class="sub-menu">

              <li >

               <a href="<?php echo $this->createUrl("user/index") ?>">个人信息</a>

              </li>
              <li>
                <a href="<?php echo $this->createUrl('user/password') ?>">密码修改</a>
              </li>
          </ul>
        </li>
          

      </ul>

      <!-- END SIDEBAR MENU -->

    </div>

    <!-- END SIDEBAR -->

    <!-- BEGIN PAGE -->

    <div class="page-content">

      <!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->

      <div id="portlet-config" class="modal hide">

        <div class="modal-header">

          <button data-dismiss="modal" class="close" type="button"></button>

          <h3>Widget Settings</h3>

        </div>

        <div class="modal-body">

          Widget settings form goes here

        </div>

      </div>

      <!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->

      <!-- BEGIN PAGE CONTAINER-->

      <div class="container-fluid">

        <!-- BEGIN PAGE HEADER-->

        <div class="row-fluid">

          <div class="span12">

            <!-- BEGIN STYLE CUSTOMIZER -->

            <div class="color-panel hidden-phone">

              <div class="color-mode-icons icon-color"></div>

              <div class="color-mode-icons icon-color-close"></div>

              <div class="color-mode">

                <p>主题颜色</p>

                <ul class="inline">

                  <li class="color-black current color-default" data-style="default"></li>

                  <li class="color-blue" data-style="blue"></li>

                  <li class="color-brown" data-style="brown"></li>

                  <li class="color-purple" data-style="purple"></li>

                  <li class="color-grey" data-style="grey"></li>

                  <li class="color-white color-light" data-style="light"></li>

                </ul>

                <label>

                  <span>布局</span>

                  <select class="layout-option m-wrap small">

                    <option value="fluid" selected>Fluid</option>

                    <option value="boxed">Boxed</option>

                  </select>

                </label>

                <label>

                  <span>Header</span>

                  <select class="header-option m-wrap small">

                    <option value="fixed" selected>Fixed</option>

                    <option value="default">Default</option>

                  </select>

                </label>

                <label>

                  <span>Sidebar</span>

                  <select class="sidebar-option m-wrap small">

                    <option value="fixed">Fixed</option>

                    <option value="default" selected>Default</option>

                  </select>

                </label>

                <label>

                  <span>Footer</span>

                  <select class="footer-option m-wrap small">

                    <option value="fixed">Fixed</option>

                    <option value="default" selected>Default</option>

                  </select>

                </label>

              </div>

            </div>

            <!-- END BEGIN STYLE CUSTOMIZER -->    

            <!-- BEGIN PAGE TITLE & BREADCRUMB-->

            <h3 class="page-title">
              <?php echo $this->pagetitle ?>
            </h3>

            <ul class="breadcrumb">

              <li>
                <i class="icon-home"></i>
                <a href="<?php echo $this->createUrl('site/index') ?>">首页</a> 
                <i class="icon-angle-right"></i>
              </li>

              <li><a href="#"><?php echo $this->pagetitle ?></a></li>

            </ul>

            <!-- END PAGE TITLE & BREADCRUMB-->

          </div>

        </div>

        <!-- END PAGE HEADER-->

        <div id="dashboard">

          <!-- BEGIN DASHBOARD STATS -->

          <?php echo  $content ?>


        </div>

      </div>

      <!-- END PAGE CONTAINER-->    

    </div>

    <!-- END PAGE -->

  </div>

  <!-- END CONTAINER -->

  <!-- BEGIN FOOTER -->

  <div class="footer">

    <div class="footer-inner">

      2013 &copy; <?php echo yii::app()->name ?>.

    </div>

    <div class="footer-tools">

      <span class="go-top">

      <i class="icon-angle-up"></i>

      </span>

    </div>

  </div>

  <!-- END FOOTER -->

  <!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->

  <!-- BEGIN CORE PLUGINS -->

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/jquery-1.10.1.min.js" type="text/javascript"></script>

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>

  <!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>      

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/bootstrap.min.js" type="text/javascript"></script>

  <!--[if lt IE 9]>

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/excanvas.min.js"></script>

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/respond.min.js"></script>  

  <![endif]-->   

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/jquery.slimscroll.min.js" type="text/javascript"></script>

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/jquery.blockui.min.js" type="text/javascript"></script>  

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/jquery.cookie.min.js" type="text/javascript"></script>

  <!-- END CORE PLUGINS -->

  <!-- BEGIN PAGE LEVEL PLUGINS -->

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/jquery.pulsate.min.js" type="text/javascript"></script>

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/jquery.gritter.js" type="text/javascript"></script>

  <!-- END PAGE LEVEL PLUGINS -->

  <!-- BEGIN PAGE LEVEL SCRIPTS -->

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/app.js" type="text/javascript"></script>

  <script src="<?php echo yii::app()->theme->baseUrl ?>/media/js/index.js" type="text/javascript"></script>        

  <!-- END PAGE LEVEL SCRIPTS -->  

  <script>

    jQuery(document).ready(function() {    

       App.init(); // initlayout and core plugins

       Index.init();

       Index.initIntro();


    });

  </script>

  <!-- END JAVASCRIPTS -->

</body>

<!-- END BODY -->

</html>